//1.引入vue
import Vue from 'vue'
//2.引入VueRouter
import VueRouter from 'vue-router'

//3.引入路由组件
import Home from '../pages/Home'
import Login from '../pages/Login'

//4.让Vue使用VueRouter这个插件
Vue.use(VueRouter)

//4.创建路由器对象
export default new VueRouter({
  routes:[
    {path:"/login",component:Login},
    { path: "/home", component: Home },
  ]
})